﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace IRepository.Migrations
{
    public partial class _15 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "T_Order",
                columns: table => new
                {
                    Order_SnowId = table.Column<string>(type: "nvarchar(450)", nullable: false),
                    Order_From = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: false),
                    Order_UserName = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
                    Order_UserPhone = table.Column<string>(type: "nvarchar(11)", maxLength: 11, nullable: true),
                    Order_InTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Order_OutTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Order_Desc = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
                    Order_Money = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
                    Order_RoomNum = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Order_UserId = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Order_State = table.Column<int>(type: "int", nullable: false),
                    Order_IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_T_Order", x => x.Order_SnowId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "T_Order");
        }
    }
}
